package top.yiwyn.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import top.yiwyn.intercepter.LoggerIncepter;

/**
 * web 的配置类 拦截器等在这里配置
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {

//    @Autowired
//    LoggerIncepter loggerIncepter;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(loggerIncepter).addPathPatterns("/**");
//    }
}
